Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 22, 2025

Since we are the toolchain file we decide what to set and no other toolchain file should be setting these. We have tests that confirm that these are indeed not set.

Also move the setting if CMAKE_DL_LIBS which it is not related to CMakeBackwardCompatibilityC.cmake (which also had a typo in the name).

Since we are the toolchain file we decide what to set and no other
toolchain file should be setting these.  We have tests that confirm that
these are indeed not set.

Also move the setting if `CMAKE_DL_LIBS` which it is not related to
`CMakeBackwardCompatibilityC.cmake` (which also had a typo in the name).
# This feature is activated if a shared library project has the property
# SOVERSION defined.
set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
set(CMAKE_DL_LIBS "")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is setting the variable to an empty string, whereas the previous code was unsetting the variable. Does that matter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what other plaforms seem to do upstream. They seem to either use the empty string or the string "dl"

@sbc100 sbc100 merged commit 35f0ffc into emscripten-core:main Nov 22, 2025
34 checks passed
@sbc100 sbc100 deleted the cmake_remove_win32 branch November 22, 2025 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants